<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th>区域</th>
        <th>大区</th>
        <th>小区</th>
        <th>省份</th>
        <th>城市</th>
        <th>专营店</th>
        <th>专营店编码</th>
        <th>专营店年度额度</th>
        <th>专营店类型</th>
        <th>专营店名称</th>
        <th>年度额度（投放）</th>
        <th>申报金额</th>
        <th>投放编号</th>
        <th>投放类型</th>
        <th>投放规格</th>
        <th>地址</th>
        <th>合同时间</th>
        <th>合同（链接）</th>
        <th>发票（链接）</th>
        <th>会签审批表（链接）</th>
        <th>合同金额</th>
        <th>审核结果</th>
    </tr>
    <?php
    foreach($projectList as $k => $v){
        $procData = isset($procList[$v['procId']]) ? $procList[$v['procId']] : array();
        $storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
        $groupList = isset($groupByProcIdList[$procData['belongProcId']]) ? $groupByProcIdList[$procData['belongProcId']] : array();
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['yearMoney'];?></td>
        <td><?php
        foreach ($groupList as $procK => $procV) {
            echo $procV['storeTypeStr'] . "<br>";
        }
        ?></td>
        <td><?php
        foreach ($groupList as $procK => $procV) {
            echo $procV['storeName'] . "<br>";
        }
        ?></td>
        <td><?php
        foreach ($groupList as $procK => $procV) {
            echo $procV['yearMoney'] . "<br>";
        }
        ?></td>
        <td><?php
        foreach ($groupList as $procK => $procV) {
            echo $procV['applyMoney'] . "<br>";
        }
        ?></td>
        <td><?=$v['id'];?></td>
        <td><?=$v['mediaTypeStr'];?></td>
        <td><?=$v['mediaSize'];?></td>
        <td><?=$v['address'];?></td>
        <td><?=$v['contractStart'];?>到<?=$v['contractEnd'];?></td>
        <td>
        <?php /*?>
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/';?><?php echo printUrl('Upload','download',array('fileId'=>$v['contractFile']['id']));?>" target="_blank">下载</a>
        <?php */?>
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$v['contractFile']['viewPath'];?>" target="_blank">下载</a>
        </td>
        <td>
        <?php /*?>
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/';?><?php echo printUrl('Upload','download',array('fileId'=>$v['invoiceFile']['id']));?>" target="_blank">下载</a>
        <?php */?>
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$v['invoiceFile']['viewPath'];?>" target="_blank">下载</a>
        </td>
        <td>
        <?php
        $number = 1;
        foreach ((array)$v['auditTable'] as $auditK => $auditV){ ?>
            <?php /*?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/';?><?php echo printUrl('Upload','download',array('fileId'=>$auditV['id']));?>" target="_blank">审批表附件<?=$number?></a>
            <?php */?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$auditV['viewPath'];?>" target="_blank">审批表附件<?=$number?></a><br>
        <?php
        $number ++;
        }?>
        </td>
        <td><?=$v['applyMoney'];?></td>
        <td><?=$procData['auditRsStr'];?></td>
    </tr>
    <?php }?>
</table>